package com.example.backend.mapper;

import com.example.backend.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrderMapper {
    void dropTable();
    void createTable();

    List<Order> findMatch(Integer userid);
    Order findOne(Integer id);
    int findLatestId();
    int insertOne(Order order);
    int deleteOne(Integer id);
    int updateOne(Order order);
}